<!doctype html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>也许有用 技术论坛 - MAYBE IT WORKS</title>
    <link th:href="@{/show/css/bootstrap.min.css}" type="text/css" rel="stylesheet">
    <link th:href="@{/show/css/style.css}" type="text/css" rel="stylesheet">
    <link type="text/css" th:href="@{/show/css/nprogress.css}" rel="stylesheet">
    <link rel="stylesheet" th:href="@{/show/css/imgSizeSmall.css}">
    <!--[if lt IE 9]>
    <script src="js/html5shiv.min.js" type="text/javascript"></script>
    <script src="js/respond.min.js" type="text/javascript"></script>
    <script src="js/selectivizr-min.js" type="text/javascript"></script>
    <![endif]-->
    <link rel="apple-touch-icon-precomposed" th:href="@{/show/images/icon/icon.png}">
    <link rel="shortcut icon" th:href="@{/show/images/icon/favicon.ico}">
    <meta name="Keywords" content="" />
    <meta name="description" content="" />
    <script type="text/javascript">
        //判断浏览器是否支持HTML5
        /*window.onload = function() {
            if (!window.applicationCache) {
        <!-- 		window.location.href="ie.html"; -->
            }
        }*/
    </script>
    <style>
        .card img {
            width: 100%;
        }
        .card{
            height: 230px;
            width: 220px;
            background-color: white;
            box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
            border-radius: 4px;
            display: inline-block;
            margin-left: 18px;
            margin-bottom: 18px;
            vertical-align: top;
        }
        .card span {
            font-size: 12px;
            text-align: center;
            color: #BFBFBF;
            display: block;
            letter-spacing: 2px;
            padding: 30px 20px;
        }
        .card strong {
            font-size: 15px;
            text-align: center;
            display: block;
            letter-spacing: 2px;
            padding: 5px 10px;
        }
    </style>
</head>

<body>
<section class="container user-select">
    <header th:replace="~{show/main :: leftbar}"></header>
    <!--/超小屏幕可见-->
    <div class="content-wrap"><!--内容-->
        <div class="content">
            <div class="content-block new-content">
                <h2 class="title"><strong style="font-weight: bold">也许有用-小程序</strong></h2>
                <div class="row" >
                    <div class="news-list">
                        <div class="card">
                            <a th:href="@{/show/intelligentArticle}" target="_blank">
                                <img  th:src="@{/show/images/img1.jpg}" alt=""/>
                                <div>
                                    <strong>也许智能文章生成器</strong>
                                    <span>输入题目可以自动生成文章，不要引入到正文，因为它不一定靠谱</span>
                                </div>
                            </a>
                        </div>
                        <div class="card">
                            <a th:href="@{/show/eatWhat}" target="_blank">
                                <img  th:src="@{/show/images/img3.jpg}" alt=""/>
                                <div>
                                    <strong>今天晚饭吃神马？</strong>
                                    <span>这个网址解决了我人生的一大困扰啊！！！你还在纠结晚饭吃什么吗？你还在为晚饭去哪里吃而烦恼吗？来这里，问题立马解决！！！</span>
                                </div>
                            </a>
                        </div>
                        <div class="card">
                            <a th:href="@{/show/htmlCodeEditor}" target="_blank">
                                <img  th:src="@{/show/images/img2.jpg}" alt=""/>
                                <div>
                                    <strong>在线前端代码编辑器</strong>
                                    <span>在浏览器体验编写HTML、CSS、JS的快感，不仅可以同屏编辑还能在线预览效果</span>
                                </div>
                            </a>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <!--/内容-->
    <aside th:replace="~{show/main :: rightbar}"><!--右侧>992px显示-->

    </aside>
    <footer th:replace="~{show/main :: bottombar}"></footer>
</section>
<div><a href="javascript:;" class="gotop" style="display:none;"></a></div>
<!--/返回顶部-->
<script th:src="@{/show/js/jquery-2.1.4.min.js}" type="text/javascript"></script>
<script th:src="@{/show/js/nprogress.js}" type="text/javascript" ></script>
<script th:src="@{/show/js/bootstrap.min.js}" type="text/javascript"></script>
<script th:src="@{/show/js/comm/right.js}" type="text/javascript"></script>
<script type="text/javascript" th:inline="javascript">
    //页面加载
    $('body').show();
    $('.version').text(NProgress.version);
    NProgress.start();
    setTimeout(function() { NProgress.done(); $('.fade').removeClass('out'); }, 1000);
    //返回顶部按钮
    $(function(){
        $(window).scroll(function(){
            if($(window).scrollTop()>100){
                $(".gotop").fadeIn();
            }
            else{
                $(".gotop").hide();
            }
        });
        $(".gotop").click(function(){
            $('html,body').animate({'scrollTop':0},500);
        });
    });
    //提示插件启用
    $(function () {
        $('[data-toggle="popover"]').popover();
    });
    $(function () {
        $('[data-toggle="tooltip"]').tooltip();
    });
    //鼠标滑过显示 滑离隐藏
    $(function(){
        $(".carousel").hover(function(){
            $(this).find(".carousel-control").show();
        },function(){
            $(this).find(".carousel-control").hide();
        });
    });
    $(function(){
        $(".hot-content ul li").hover(function(){
            $(this).find("h3").show();
        },function(){
            $(this).find("h3").hide();
        });
    });
    //页面元素智能定位
    $.fn.smartFloat = function() {
        var position = function(element) {
            var top = element.position().top; //当前元素对象element距离浏览器上边缘的距离
            var pos = element.css("position"); //当前元素距离页面document顶部的距离
            $(window).scroll(function() { //侦听滚动时
                var scrolls = $(this).scrollTop();
                if (scrolls > top) { //如果滚动到页面超出了当前元素element的相对页面顶部的高度
                    if (window.XMLHttpRequest) { //如果不是ie6
                        element.css({ //设置css
                            position: "fixed", //固定定位,即不再跟随滚动
                            top: 0 //距离页面顶部为0
                        }).addClass("shadow"); //加上阴影样式.shadow
                    } else { //如果是ie6
                        element.css({
                            top: scrolls  //与页面顶部距离
                        });
                    }
                }else {
                    element.css({ //如果当前元素element未滚动到浏览器上边缘，则使用默认样式
                        position: pos,
                        top: top
                    }).removeClass("shadow");//移除阴影样式.shadow
                }
            });
        };
        return $(this).each(function() {
            position($(this));
        });
    };
    //启用页面元素智能定位
    $(function(){
        $("#search").smartFloat();
    });
</script>
</body>
</html>
